/**
 * Copyright (c) 2006 Amgad S Youssef
 * All Rights Reserved.
 * Licensed under the Eclipse Public License - v 1.0
 * For more information see http://www.eclipse.org/legal/epl-v10.html
 */
package org.eclipsejcde.core.preferences;

import java.io.File;

import org.eclipse.jface.preference.IPreferenceStore;
import org.eclipsejcde.core.Activator;

/**
 * @author Amgad S Youssef
 *
 */
public class JCPreferences {
	private static IPreferenceStore store = Activator.getDefault().getPreferenceStore();

	// Java Card
	public static String getJAVA_CARD_PATH() {
		File file = new File(store.getString(JCPreferenceConstants.JAVA_CARD_PATH));
		return file.getAbsolutePath();
	}

	// CREF

	public static boolean isCREF_CL_OPTIONS_b() {
		return store.getBoolean(JCPreferenceConstants.CREF_CL_OPTIONS_b);
	}

	public static boolean isCREF_CL_OPTIONS_e() {
		return store.getBoolean(JCPreferenceConstants.CREF_CL_OPTIONS_e);
	}

	public static boolean isCREF_CL_OPTIONS_n() {
		return store.getBoolean(JCPreferenceConstants.CREF_CL_OPTIONS_n);
	}

	public static boolean isCREF_CL_OPTIONS_nobanner() {
		return store.getBoolean(JCPreferenceConstants.CREF_CL_OPTIONS_nobanner);
	}

	public static boolean isCREF_CL_OPTIONS_nomeminfo() {
		return store.getBoolean(JCPreferenceConstants.CREF_CL_OPTIONS_nomeminfo);
	}

	public static String getCREF_CL_OPTIONS_p() {
		return store.getString(JCPreferenceConstants.CREF_CL_OPTIONS_p);
	}

	public static boolean isCREF_CL_OPTIONS_s() {
		return store.getBoolean(JCPreferenceConstants.CREF_CL_OPTIONS_s);
	}

	public static boolean isCREF_CL_OPTIONS_t() {
		return store.getBoolean(JCPreferenceConstants.CREF_CL_OPTIONS_t);
	}

	public static boolean isCREF_CL_OPTIONS_z() {
		return store.getBoolean(JCPreferenceConstants.CREF_CL_OPTIONS_z);
	}

	// Converter

	public static boolean isCONVERTER_CL_OPTIONS_debug() {
		return store.getBoolean(JCPreferenceConstants.CONVERTER_CL_OPTIONS_debug);
	}

	public static boolean isCONVERTER_CL_OPTIONS_exportmap() {
		return store.getBoolean(JCPreferenceConstants.CONVERTER_CL_OPTIONS_exportmap);
	}

	public static boolean isCONVERTER_CL_OPTIONS_i() {
		return store.getBoolean(JCPreferenceConstants.CONVERTER_CL_OPTIONS_i);
	}

	public static boolean isCONVERTER_CL_OPTIONS_mask() {
		return store.getBoolean(JCPreferenceConstants.CONVERTER_CL_OPTIONS_mask);
	}

	public static boolean isCONVERTER_CL_OPTIONS_nobanner() {
		return store.getBoolean(JCPreferenceConstants.CONVERTER_CL_OPTIONS_nobanner);
	}

	public static boolean isCONVERTER_CL_OPTIONS_noverify() {
		return store.getBoolean(JCPreferenceConstants.CONVERTER_CL_OPTIONS_noverify);
	}

	public static boolean isCONVERTER_CL_OPTIONS_nowarn() {
		return store.getBoolean(JCPreferenceConstants.CONVERTER_CL_OPTIONS_nowarn);
	}

	public static boolean isCONVERTER_CL_OPTIONS_verbose() {
		return store.getBoolean(JCPreferenceConstants.CONVERTER_CL_OPTIONS_verbose);
	}

	public static boolean isCONVERTER_CL_OPTIONS_out_cap() {
		return store.getBoolean(JCPreferenceConstants.CONVERTER_CL_OPTIONS_out_cap);
	}

	public static boolean isCONVERTER_CL_OPTIONS_out_jca() {
		return store.getBoolean(JCPreferenceConstants.CONVERTER_CL_OPTIONS_out_jca);
	}

	public static boolean isCONVERTER_CL_OPTIONS_out_exp() {
		return store.getBoolean(JCPreferenceConstants.CONVERTER_CL_OPTIONS_out_exp);
	}

	// JCWDE

	public static String getJCWDE_CL_OPTIONS_p() {
		return store.getString(JCPreferenceConstants.JCWDE_CL_OPTIONS_p);
	}

	public static boolean isJCWDE_CL_OPTIONS_nobanner() {
		return store.getBoolean(JCPreferenceConstants.JCWDE_CL_OPTIONS_nobanner);
	}

	public static boolean isJCWDE_CL_OPTIONS_verbose() {
		return store.getBoolean(JCPreferenceConstants.JCWDE_CL_OPTIONS_verbose);
	}

}
